package com.blockchain.securewallet.model.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Unique;

@Entity
public class BlockAddress {
    public static final int TYPE_BIT_CON = 0;
    public static final int TYPE_ETH_COIN = 1;

    @Id(autoincrement = true)
    private Long id;
    private int type;
    @Unique
    private String address;
    private String note;
    @Generated(hash = 744240859)
    public BlockAddress(Long id, int type, String address, String note) {
        this.id = id;
        this.type = type;
        this.address = address;
        this.note = note;
    }
    @Generated(hash = 18997098)
    public BlockAddress() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public int getType() {
        return this.type;
    }
    public void setType(int type) {
        this.type = type;
    }
    public String getAddress() {
        return this.address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public String getNote() {
        return this.note;
    }
    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public String toString() {
        return "BlockAddress{" +
                "id=" + id +
                ", type=" + type +
                ", address='" + address + '\'' +
                ", note='" + note + '\'' +
                '}';
    }
}
